<tt>#include &lt;curses.h><br>
<br>
char *map[]={<br>
&nbsp; &nbsp; "***************",<br>
&nbsp; &nbsp; "*&nbsp; &nbsp; &nbsp; *&nbsp; &nbsp; &nbsp; *",<br>
&nbsp; &nbsp; "*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; *",<br>
&nbsp; &nbsp; "*&nbsp; &nbsp; &nbsp; *** ****",<br>
&nbsp; &nbsp; "**** ***&nbsp;&nbsp; *&nbsp; *",<br>
&nbsp; &nbsp; "*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *&nbsp; *",<br>
&nbsp; &nbsp; "*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *&nbsp; *",<br>
&nbsp; &nbsp; "*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; *",<br>
&nbsp; &nbsp; "*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *&nbsp; *",<br>
&nbsp; &nbsp; "***************"<br>
};<br>
<br>
int main() {<br>
&nbsp; &nbsp; //initialize curses<br>
&nbsp; &nbsp; keypad(initscr(),1);<br>
&nbsp; &nbsp; <br>
&nbsp; &nbsp; //player's starting coordinates <br>
&nbsp; &nbsp; int y=1;<br>
&nbsp; &nbsp; int x=1;<br>
&nbsp; &nbsp; <br>
&nbsp; &nbsp; //draw map<br>
&nbsp; &nbsp; for (int yy=0;yy&lt;10;yy++)<br>
&nbsp; &nbsp; &nbsp; &nbsp; for (int xx=0;xx&lt;15;xx++)<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mvaddch(yy,xx,map[yy][xx]);<br>
&nbsp; &nbsp; //draw player<br>
&nbsp; &nbsp; mvaddch(y,x,'@');<br>
<br>
&nbsp; &nbsp; //wait for key press before leaving<br>
&nbsp; &nbsp; getch();<br>
&nbsp; &nbsp; //clean up after we've finished using curses<br>
&nbsp; &nbsp; return endwin();<br>
}<br>
</tt>